<?php $assetsUri=$this->assetsUri();$examImg=$assetsUri.'/img/exam.jpg';$productStr='';if(!$products=$ZMODULE['products']){$queryServ=$ZOPEN->queryServ;$productGet=$queryServ->productsGet;$productGet->setFields("id,main_pic_uri,title")->setOrderBy('release_datetime DESC')->setStatuses(['sold_in','in_promotion'])->setLimit(6);if(!$products=$productGet->execute()){if($products===false){$productStr='<p class="noData">获取数据失败['.$productGet->errorCode().']</p>';}else{$productStr=<<<S
<li class="proItem">
	<div class="imgCut"><a><img src="$examImg"></a></div>
	<p class="productTit"><a>示例产品名称</a></p>
</li>		
S;
$productStr=str_repeat($productStr,6);}}}if($products){foreach($products as$product){$link=$ZVAR['productDetailUrl'].'?id='.$product['id'];$thumb=$queryServ->getProductImgUrl($product['main_pic_uri'],null,100);$productStr.=<<<S
<li class="proItem">
	<div class="imgCut"><a href="$link"><img src="$thumb"></a></div>
	<p class="productTit"><a href="$link">{$product['title']}</a></p>
</li>
S;
}}$modStr='';if($ZMODULE['showModTit']){$modStr=sprintf('<h4 class="modTit">%s</h4>',$ZMODULE['modTit']?:'产品推荐');}?> <div class="zmsun-module zmsun-de-productReco"><?=$modStr ?> <ul class="productList"><?=$productStr ?></ul></div>